package com.example.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.project.entity.Project;
import com.example.project.service.ProjectService;

/**
 * RuoYi首创 html调用 thymeleaf 实现字典读取
 * 
 * @author ruoyi
 */
@Service("data")
public class DataService {

	@Autowired
	private ProjectService projectsService;

	public List<Project> getProjectsList() {
		List<Project> projectsList = projectsService.findAllList(1);
		return projectsList;
	}
}
